﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickRunnable.CodeDom
{
    public class Pos {
        public String Symbol { get; set; }
    }

    public class AssociatedKeyAttribute : Attribute{
        public String Name { get; set; }
        public AssociatedKeyAttribute( String key){}
    }

    public static class PosExpressions
    {
        [AssociatedKey("Pos.Symbol")]
        public static String PosSymbolGetter( Object obj ) { 
            Pos pos = ( Pos ) obj;
            return pos.Symbol;
        }
    }
}
